package cn.kgc.dto;

import cn.kgc.entity.PmsSkuImages;
import cn.kgc.entity.PmsSkuInfo;
import cn.kgc.entity.PmsSkuSaleAttrValue;
import cn.kgc.entity.PmsSpuInfoDesc;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.checkerframework.checker.index.qual.LowerBoundUnknown;

import java.util.List;

/**
 * 商品详情信息
 *
 * 根据sku的id查询商品的详细信息
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class SpuItemVO {
   private PmsSkuInfo pmsSkuInfo;  //商品的基本信息
   private List<PmsSkuImages> imagesList; //商品的图片信息
   private List<Attr> pmsSkuItemSaleAttrVoList; //商品销售属性
   private PmsSpuInfoDesc pmsSpuInfoDesc; //获取SPU的介绍信息
   private List<PmsSpuItemGroupAttrVo> pmsSpuItemGroupAttrVos; //spu属性组

   @Data
   @AllArgsConstructor
   @NoArgsConstructor
   @Builder
   public static class PmsSpuItemGroupAttrVo{
       private String groupName;
       private List<Attr> baseAttrs;
   }

}
